package edu.gdkm.exam;

public class Test8 {
    public static void main(String[] args) {
        A a = new A();
        System.out.println();
        B b = new B();
        System.out.println();
        A c = new B();
        System.out.println();
    }
}
class A{
    A(){
        System.out.print("A");
    }
}
class B extends A{
    B(){
        super();
        System.out.print("B");
    }
}